/**
 * Copyright 2008-2009. Chongqing Communications Industry Services Co.,Ltd Information Technology Branch. All rights
 * reserved. <a>http://www.cqcis.com</a>
 */
package com.cq.bd.dwr;

import java.util.List;
import java.util.Map;

import com.cq.base.domain.Page;
import com.cq.bd.base.BaseDwr;
import com.cq.bd.domain.STakeLocation;
import com.cq.bd.service.TakeLocationService;

/**
 * 采血地点管理
 * 
 * @author huangmy
 * @date   2009-10-5
 */
public class TakeLocationDwr extends BaseDwr {
    private static final long serialVersionUID = 1L;
    private TakeLocationService takeLocationService;

    /**
     * 创建采血地点
     * 
     * @param takeLocal
     */
    public void createTakeLocation(STakeLocation takeLocal) {
        this.takeLocationService.doCreateTakeLocation(takeLocal);
    }
    
    /**
     * 修改采血地点
     * 
     * @param takeLocal
     */
    public void updateTakeLocation(STakeLocation takeLocal) {
        this.takeLocationService.doUpdateTakeLocation(takeLocal);
    }
    
    /**
     * 获取采血地点
     * 
     * @return
     */
    public STakeLocation getTakeLocation(Long locationId) {
        return this.takeLocationService.doGetTakeLocation(locationId);
    }
    
    /**
     *  删除
     * 
     * @param locationId
     */
    public void deleteLocation(Long locationId) {
        this.takeLocationService.doDeleteTakeLocation(locationId);
    }
    
    /**
     * 分页查询
     * 
     * @param filter
     * @param like
     * @param sort
     * @param pageNo
     * @param pageSize
     * @return
     */
    public Page pageTakeLocations(Map<String, String> filter, Map<String, String> like, Map<String, String> sort, int pageNo, int pageSize){
        return this.takeLocationService.pageTakeLocations(filter, like, sort, pageNo, pageSize);    
    }
    
    /**
     * 获取采血地点
     * 
     * @return
     */
    public List<STakeLocation> getTakeLocations() {
        return this.takeLocationService.doGetTakeLocations();
    }

    public void setTakeLocationService(TakeLocationService takeLocationService) {
        this.takeLocationService = takeLocationService;
    }
}
